import request from '@/utils/request'

// 修改提现申请状态
export function updateWithdrawStatus(data) {
  return request({
    url: `/qth/driverWithdraw/updateStatus`,
    method: 'put',
    params: { id: data.id, status: data.status }
  })
}

// 查询司机提现申请列表
export function listDriverWithdraw(query) {
  return request({
    url: '/qth/driverWithdraw/list',
    method: 'get',
    params: query
  })
}

// 查询司机提现申请详细
export function getDriverWithdraw(id) {
  return request({
    url: '/qth/driverWithdraw/' + id,
    method: 'get'
  })
}

// 新增司机提现申请
export function addDriverWithdraw(data) {
  return request({
    url: '/qth/driverWithdraw',
    method: 'post',
    data: data
  })
}

// 修改司机提现申请
export function updateDriverWithdraw(data) {
  return request({
    url: '/qth/driverWithdraw',
    method: 'put',
    data: data
  })
}

// 删除司机提现申请
export function delDriverWithdraw(id) {
  return request({
    url: '/qth/driverWithdraw/' + id,
    method: 'delete'
  })
}
